package com.baizhi.shane.shane.service;

import com.baizhi.shane.shane.entity.ShaneCommentEssay;
import com.baizhi.shane.shane.vo.CommentEssayVO;
import com.baizhi.shane.sys.vo.SuccessedOutVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author wbz12
* @description 针对表【shane_comment_essay(啥呢文章评论表)】的数据库操作Service
* @createDate 2023-07-25 22:33:37
*/
public interface ShaneCommentEssayService extends IService<ShaneCommentEssay> {

    /**
     * 获取指定文章下所有的评论
     *
     * @Author 闻柏智
     * @Date 16:18 2024/2/28
     * @Param essayId
     * @return java.util.List<com.baizhi.shane.shane.vo.CommentEssayVO>
     **/
    List<CommentEssayVO> getAllCommentByEssayId(Long essayId);

    /**
     * 新增一个评论
     *
     * @Author 闻柏智
     * @Date 16:22 2024/2/28
     * @Param shaneCommentEssay
     * @return com.baizhi.shane.sys.vo.SuccessedOutVO
     **/
    SuccessedOutVO insertOneComment(ShaneCommentEssay shaneCommentEssay);
}
